package cn.codeforfun.utils;

import java.util.Random;

/**
 * Created by Administrator on 2017/2/18 0018.
 */
public class RandomUtil {
    public static int nextInt(final int min, final int max) {
        Random rand = new Random();
        int tmp = Math.abs(rand.nextInt());
        return tmp % (max - min + 1) + min;
    }
}
